package com.xishu.entity.customer;

import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Api(description = "积分变化历史")
@Entity(name = "score_history")
@Table(indexes = {@Index(columnList = "customerId")})
public class ScoreHistory extends AbstractEntity {
    @ApiModelProperty(value = "客人ID")
    private Long customerId;

    @ApiModelProperty(value = "变化的历史类型，1是消费，2是积分兑换，3是商家修改")
    private Integer changeType;

    @ApiModelProperty(value = "积分变化的值")
    private Integer value;

    @ApiModelProperty(value = "哪一个订单产生的积分历史记录")
    private Long orderId;

    @ApiModelProperty(value = "在哪一个分店消费的")
    private Long shopId;

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Integer getChangeType() {
        return changeType;
    }

    public void setChangeType(Integer changeType) {
        this.changeType = changeType;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }
}
